#include <QApplication>
#include <QUrl>

#include "widget.h"
#include "imageitem.h"
#include "imageitemproxy.h"
#include "dbreader.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Widget w;
    w.show();

//    ImageItemProxy ii;
//    ii.setDescription("Test Desc");
//    ii.setUrl(QUrl("http://image.haha.mx/2016/02/14/big/2150937_5070086128067d0cc6253f5f1364e3c2_1455463893.gif"));
//    ii.setUrl(QUrl("http://image.haha.mx/2016/02/14/big/2150912_e9639dd2dca29f59b2b94f366d6f9418_1455460211.gif"));
//    ii.setUrl(QUrl("http://image.haha.mx/2016/02/14/big/2150949_d99ae70819376abf0a991386d8ca0c9f_1455464505.jpg"));
//    ii.show();

//    DbReader::instance()->queryGoodImages();
//    DbReader::instance()->queryNewImages();

    return a.exec();
}
